# -*- coding: utf-8 -*-
"""
Created on Sun Sep  8 16:50:50 2019

@author: ASUS
"""
print('-------------方法1-------------')
s = input('x,y,z=')
x,y,z = s.split(',')
if x > y:
    x,y = y,x
if x > z:
    x,z = z,x
if y > z:
    y,z = z,y
print(x,y,z)
print('-------------方法2-------------')
s = input('x,y,z=')
x,y,z = s.split(',')#序列解包
x,y,z = sorted([x,y,z])#序列解包
print(x,y,z)